package bgate.connector;


public class ImagePackage extends DataPackage{
    public short segment;
    public byte[] data;

    public ImagePackage(short appID, short groupID, short itemID, byte tabID, short segment){
        super(MessageType.IMAGE_DATA, appID, groupID, itemID, tabID);
        this.segment = segment;        
    }

    public void setData(byte[] data, int start){
        //System.out.println("data:" + data.length + "\tstart:" + start);
        this.data = new byte[data.length - start];
        System.arraycopy(data, start, this.data, 0, data.length - start);
    }
}
